package Day01;

import java.util.Scanner;

//判断成绩是否合格
public class Demo08 {
    public static void main(String[] args) {
        System.out.println("请输入考试成绩：");
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        if (0 <= i && i < 60) {
            System.out.println("成绩不合格");
        }else if(i >= 60&& i < 80){
            System.out.println("成绩合格");
        }else if(i>=80 && i<=100){
            System.out.println("成绩为优秀");
        }else{
            System.out.println("请输入正确的分数");
        }
    }
}
